package labb1.del2;

/**
 * @author Mikko Puustinen
 * @version 0.1, 2007-okt-02
 */
public class NoSuchCardException extends RuntimeException {
    private String message;
    private int id;

    NoSuchCardException(int id) {
        this("", id);
    }

    NoSuchCardException(String message, int id) {
        this.message = message;
        this.id = id;
    }

    public String getMessage() {
        return "Card at position " + id + " could not be found: " + message;
    }
}
